<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;padding: 0;
    }
    .parent{
      height: 300px;
      width: 300px;
      background-color: chocolate;
      margin-top: 100px;
      /* overflow: hidden; */
      /* float: left; */
      /* display: inline-block; */
      position: absolute;
    }
    .child{
      height: 100px;
      width: 100px;
      background-color: chartreuse;
      margin-top: 50px;
    }
    /* .child2{
      width: 200px;
      height: 200px;
      background: #000;
      margin: 50px;
      display: inline-block;
    } */
  </style>
</head>
<body>
  <div class="parent">
    <div class="child"></div>
    <div class="child2"></div>
  </div>
</body>
</html>